package org.wdcode.news.helper;

import org.wdcode.base.helper.BaseEntityCacheHelper;
import org.wdcode.news.cache.ArticlesCache;
import org.wdcode.news.po.Articles;

/**
 * 文章助手类
 * @author WD
 * @since JDK6
 * @version 1.0 2010-05-12
 */
public final class ArticlesHelper extends BaseEntityCacheHelper<ArticlesCache, Articles> {
	// 文章助手
	private static ArticlesHelper	helper;

	/**
	 * 获得子类的Class
	 * @return 子类的Class
	 */
	public Class<Articles> getEntityClass() {
		return Articles.class;
	}

	/**
	 * 实例化一个对象
	 */
	public Articles newInstance() {
		return new Articles();
	}

	/**
	 * 获得文章助手
	 * @return 文章助手
	 */
	public static ArticlesHelper getHelper() {
		return helper;
	}

	/**
	 * 设置文章助手
	 * @param helper 文章助手
	 */
	public void setHelper(ArticlesHelper helper) {
		ArticlesHelper.helper = helper;
	}
}
